package p270jp.pxv.android.common.presentation.lifecycle.observer;

import androidx.lifecycle.AbstractC0721k;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;
import p165fo.C3114c;
import p325m0.MutabilityOwnership;

/* compiled from: AliveContextEventBusRegister.kt */
/* renamed from: jp.pxv.android.common.presentation.lifecycle.observer.AliveContextEventBusRegister */
/* loaded from: classes2.dex */
public final class AliveContextEventBusRegister implements LifecycleObserver {

    /* renamed from: a */
    public final C3114c f18961a;

    /* renamed from: b */
    public Object f18962b;

    public AliveContextEventBusRegister(Object obj, C3114c cVar) {
        MutabilityOwnership.m3745m(obj, "targetWithLifecycle");
        MutabilityOwnership.m3745m(cVar, "eventBus");
        this.f18961a = cVar;
        this.f18962b = obj;
    }

    @OnLifecycleEvent(AbstractC0721k.EnumC0723b.ON_CREATE)
    public final void registerEventBus() {
        this.f18961a.m6276j(this.f18962b);
    }

    @OnLifecycleEvent(AbstractC0721k.EnumC0723b.ON_DESTROY)
    public final void unregisterEventBus() {
        this.f18961a.m6274l(this.f18962b);
        this.f18962b = null;
    }
}
